package com.efesco.common;



import java.util.Timer;
import java.util.TimerTask;

public class ScheduleTask {
	  private final int minutes; 
	  private final Timer timer = new Timer(); 
	    public ScheduleTask(int minutes) { 
	        this.minutes = minutes; 
	    } 

	    public void start() { 
	        timer.schedule(new TimerTask() {
	            public void run() {
	            	 System.out.println("Your egg is ready!");
	            }
	        }, minutes * 60 * 1000); 
	    } 
	    
	    
}
